FluentForm\App\Services\Form\FormValidationService D

Total Complexity 128
Dependencies 11
Dependents 1
Total lines 888
Lines of code 601
Logical lines of code 277
Comment lines 135
Methods 29
Properties 3

Methods 29

Method Rating Maintainability Complexity Lines of code
validateSubmission()
C
29 21 139
validateReCaptcha()
A
48 7 34
validateHCaptcha()
S
49 6 31
validateTurnstile()
S
49 6 30
checkIpRestriction()
S
58 7 13
handleRestrictedSubmission()
S
54 6 23
checkCountryRestriction()
S
59 6 13
checkKeyWordRestriction()
S
52 5 25
getIpBasedOnCountry()
S
53 5 23
handleDenyEmptySubmission()
S
54 5 21
containsRestrictedKeywords()
S
58 5 15
delegateValidations()
S
59 5 13
checkKeywordsMatching()
S
61 5 13
preventMaliciousAttacks()
S
52 4 23
isAkismetSpam()
S
51 3 33
validateNonce()
S
53 3 24
validateRestrictions()
S
53 3 23
getIpInfo()
S
56 3 17
handleCleanTalkSpamErrorUsingAPi()
S
60 3 13
shouldSkipCaptchaValidation()
S
62 3 12
isCleanTalkSpam()
S
62 3 11
isCleanTalkSpamUsingApi()
S
62 3 11
handleAkismetSpamError()
S
62 3 10
handleCleanTalkSpamError()
S
62 3 10
__construct()
S
80 1 3
setForm()
S
81 1 3
setFormData()
S
81 1 3
validateInput()
S
78 1 3
throwValidationException()
S
66 1 9